added Feb 2001 SDK
[windows-sources.git] / shared source / wpf / src / host / shimimpl / persisthistory.hxx
blob98a12a1f62ab06d7a9e4a6e2c8b8cba8a2d9fefc
1 //+-----------------------------------------------------------------------
2 //
3 // Copyright (c) Microsoft Corporation. All rights reserved.
4 //
5 // Description:
6 // Defines the PersistHistory class of PresentationHost.
7 //
8 // History:
9 // 2002/06/19-murrayw
10 // Created
11 // 2007/09/20-[....]
12 // Ported Windows->DevDiv. See SourcesHistory.txt.
14 //------------------------------------------------------------------------
16 #pragma once
18 //******************************************************************************
20 // CPersistHistory class definition
22 //******************************************************************************
24 class CPersistHistory : IPersistHistory
26 friend class CHtmlWindow;
28 private:
29 CHostShim *m_pHostShim;
30 public:
31 CPersistHistory::CPersistHistory(__in CHostShim *);
32 CPersistHistory::~CPersistHistory();
34 // IUnknown Methods
35 STDMETHODIMP QueryInterface(REFIID, __out LPVOID*);
36 STDMETHODIMP_(ULONG)AddRef();
37 STDMETHODIMP_(ULONG)Release();
39 // IPersist Methods
40 STDMETHODIMP GetClassID(LPCLSID);
42 // IPersistHistory Methods
43 STDMETHODIMP LoadHistory(__in IStream *pStream, IBindCtx *pbc);
44 STDMETHODIMP SaveHistory(__in IStream *pStream);
45 STDMETHODIMP SetPositionCookie(DWORD dwPositioncookie);
46 STDMETHODIMP GetPositionCookie(__out DWORD *pdwPositioncookie);
48 private:
49 STDMETHODIMP WriteToStream(IStream* pOutputStream, DWORD dwData);
50 STDMETHODIMP ReadFromStream(IStream* pInputStream, DWORD* pdwData);